<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:component>
	<s:div styleClass="clearfix">
		<s:div styleClass="left">
			<s:div styleClass="leftm">
				<h:outputLink
					value="#{application.contextPath}/guides/objekti/objekt.seam">
					<f:param name="idObjekta" value="#{obj.idObjekta}" />
					<f:param name="l" value="#{currentLang}" />
					<f:param name="title" value="#{titleAction.getUrlTitle(obj)}" />
					<img
						alt="#{messages['label.image.alt']} #{obj.naziv},#{obj.mjesto.naziv}"
						width="105" height="75"
						src="#{slikaAction.getPocSlikaPath(obj,'s')}"> </img>
				</h:outputLink>
			</s:div>
			<s:div styleClass="leftm infotxt">
				<i><h:outputText value="#{messages['label.kategorija.ocjena']}:" /></i>
				<h:graphicImage alt="#{messages['label.image.alt']}"
					value="/resources/images/class_#{obj.kategorija.brojZvjezdica}star.gif"
					rendered="#{obj.kategorija != null}" />

				<br />
				<h:outputLink
					value="#{application.contextPath}/guides/objekti/objekt.seam">
					<f:param name="idObjekta" value="#{obj.idObjekta}" />
					<f:param name="l" value="#{currentLang}" />
					<f:param name="title" value="#{titleAction.getUrlTitle(obj)}" />
					<h:outputText style="white-space:nowrap;"
						value="#{messages[stringUtil.toString(obj.tipObjekta.idTipaObjekta)]} #{obj.naziv}, " />
				</h:outputLink>
				<br />
				<h:outputLink
					value="#{application.contextPath}/guides/mjesta/mjesto.seam">
					<f:param name="idMjesta" value="#{obj.mjesto.idMjesta}" />
					<f:param name="l" value="#{currentLang}" />
					<f:param name="title"
						value="#{titleAction.getUrlTitle(obj.mjesto)}" />
					<h:outputText value="#{obj.mjesto.naziv}" />
				</h:outputLink>
				<br />
				<s:div>
					<i><h:outputFormat rendered="#{obj.ocjena != null}"
						value="#{messages['label.rate']} &#160;|&#160; ">
						<f:param value="#{obj.ocjena == null ? 0 : obj.ocjena}"></f:param>
					</h:outputFormat> </i>
					<h:outputLink rendered="#{obj.brojSlika != null}"
						value="#{application.contextPath}/guides/objekti/objekt.seam">
						<f:param name="idObjekta" value="#{obj.idObjekta}" />
						<f:param name="l" value="#{currentLang}" />
						<f:param name="title" value="#{titleAction.getUrlTitle(obj)}" />
						<i> <h:outputFormat value="#{messages['label.images.number']}">
							<f:param value="#{obj.brojSlika}"></f:param>
						</h:outputFormat> </i>
					</h:outputLink>
					<h:outputText value="&#160;|&#160;"
						rendered="#{obj.brojDojmova != null}" />
					<h:outputLink rendered="#{obj.brojDojmova != null}"
						value="#{application.contextPath}/guides/objekti/objekt.seam">
						<f:param name="idObjekta" value="#{obj.idObjekta}" />
						<f:param name="l" value="#{currentLang}" />
						<f:param name="title" value="#{titleAction.getUrlTitle(obj)}" />
						<i> <h:outputFormat
							value="#{messages['label.reviews.number']}">
							<f:param value="#{obj.brojDojmova}"></f:param>
						</h:outputFormat> </i>
						<f:param value="#reviews"></f:param>
					</h:outputLink>
					<h:outputText value="#{messages['label.ctg_id']}: " />
					<h:outputText value="#{obj.ctgId}" />
				</s:div>
			</s:div>
		</s:div>
		<s:div styleClass="left top" rendered="#{opis == true}">
			<p><h:outputText
				value="#{stringUtil.substring(obj.getOpis(currentLang).opis,250)}" />
			<h:outputLink
				value="#{application.contextPath}/guides/objekti/objekt.seam">
				<f:param name="idObjekta" value="#{obj.idObjekta}" />
				<f:param name="l" value="#{currentLang}" />
				<f:param name="title" value="#{titleAction.getUrlTitle(obj)}" />
				<h:outputText value="#{messages['label.link.more']}" />
			</h:outputLink></p>
		</s:div>
	</s:div>
</ui:component>

</html>